package com.bang.study.bridge;

/**
 * @ClassName: App
 * @author: BANG
 * @Date: 2019/10/28 17:59
 * @Version: 1.0
 * @Modified By:
 * @Desc: TODO
 */
public class App {

    public static void main(String[] args) {
        Circle circle = new Circle();
        Rectangle rectangle = new Rectangle();

        Black black = new Black();
        White white = new White();

        circle.setColor(black);
        circle.draw();


        rectangle.setColor(white);
        rectangle.draw();
    }
}
